import request from '../utils/request'

export function reject(id) {
  return request({
    url: '/member/orderAdmin/reject/' + id,
    method: 'post'
  })
}

export function cancel(id) {
  return request({
    url: '/member/orderAdmin/cancel/' + id,
    method: 'post'
  })
}

export function list(params) {
  return request({
    url: '/member/orderAdmin/list/',
    method: 'get',
    params:params
  })
}

export function summary(params) {
  return request({
    url: '/member/orderAdmin/summary',
    method: 'post',
    params:params
  })
}

export function orderList(params) {
  return request({
    url: '/member/orderAdmin/orderList',
    method: 'get',
    params:params
  })
}
export function pricelist(params) {
    return request({
      url: '/member/orderAdmin/pricelist',
      method: 'get',
      params: params
    })
  }
export function updatePrice(params) {
    return request({
      url:'/member/orderAdmin/updatePrice',
      method:'post',
      params:params
    })
}